/*
 * @Author: yaoling 1871883713@qq.com
 * @Date: 2022-07-21 16:00:49
 * @LastEditors: yaoling 1871883713@qq.com
 * @LastEditTime: 2022-12-21 14:37:32
 * @Description: 系统应用
 */
import { RouteRecordRaw } from 'vue-router'
import Home from '@/views/home/index.vue'
/**
 * @desc: 系统应用
 */
const systemRouter: Array<RouteRecordRaw> = [
  {
    path: '/system',
    name: 'System',
    meta: {
      title: '系统应用',
      icon: 'iconguanli'
    },
    component: Home,
    children: [
      {
        path: '/home/doc-center',
        name: 'DocCenter',
        component: () => import('@/views/documentCenter/index.vue'),
        meta: {
          title: '文档中心',
          icon: 'iconshoucewendang'
        }
      },
      {
        path: '/home/doc-details',
        name: 'DocDetails',
        component: () => import('@/views/documentCenter/details/index.vue'),
        meta: {
          title: '文档中心详情页面'
        }
      },
      {
        path: '/home/notice',
        meta: {
          title: '通知公告',
          icon: 'iconfabu'
        },
        name: 'Notice',
        component: () => import('@/views/noticeManagement/index.vue'),
      },
      {
        path: '/notice/add-notice',
        name: 'AddNotice',
        component: () => import('@/views/noticeManagement/addnotice/index.vue'),
        meta: {
          title: '新建公告',
          icon: 'iconshoucewendang'
        }
      },
      {
        path: '/home/personal-center',
        name: 'PersonalCenter',
        meta: {
          title: '个人中心',
          icon: 'iconyonghugeren'
        },
        component: () => import('@/views/personalCenter/index.vue')
      },
      {
        path: '/home/issues',
        name: 'Issues',
        component: () => import('@/views/problemCenter/index.vue'),
        meta: {
          title: '问题中心',
          icon: 'iconwentihuibao'
        }
      },
      {
        path: '/home/create-issues',
        name: 'CreateIssues',
        component: () => import('@/views/problemCenter/createIssues/index.vue'),
        meta: {
          title: '创建问题',
          icon: 'iconxinzengfenlei'
        }
      },
      {
        path: '/home/detail',
        name: 'Detail',
        component: () => import('@/views/problemCenter/detail/index.vue'),
        meta: {
          title: '问题详情'
        }
      },
      {
        path: '/home/statistical',
        name: 'Statistical',
        component: () => import('@/views/problemCenter/statistical/index.vue'),
        meta: {
          title: '统计排名',
          icon: 'icontongjifenxi'
        }
      },
      {
        path: '/home/news-management',
        name: 'NewsManagement',
        component: () => import('@/views/newsManagement/index.vue'),
        meta: {
          title: '新闻管理',
          icon: 'iconc-system'
        }
      },
      {
        path: '/news/add-news',
        name: 'AddNews',
        component: () => import('@/views/newsManagement/addnews/index.vue'),
        meta: {
          title: '新建新闻',
          icon: 'iconshoucewendang'
        }
      },
    //   {
    //     path: '/home/create-issues',
    //     name: 'CreateIssues',
    //     component: () => import('@/views/issues/createIssues/index.vue'),
    //     meta: {
    //       title: '创建问题',
    //       icon: 'iconxinzengfenlei'
    //     }
    //   },
    //   {
    //     path: '/home/doc-details',
    //     name: 'DocDetails',
    //     component: () => import('@/views/system/docCenter/details/index.vue'),
    //     meta: {
    //       title: '文档中心详情页面'
    //     }
    //   },
      {
        path: '/home/doc-richEditor',
        name: 'DocRichEditor',
        component: () => import('@/views/documentCenter/docRichEditor/index.vue'),
        meta: {
          title: '文档富文本'
        }
      }
    ]
  }
]
export default systemRouter
